package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallFuwuServiceitemListRequest struct {
	/*
	   商品所属卖家账号id     */
	SellerId *int64 `json:"seller_id,omitempty" required:"false" `
	/*
	   商品id列表，有数量限制     */
	Itemids *[]int64 `json:"itemids,omitempty" required:"false" `
}

func (s *TmallFuwuServiceitemListRequest) SetSellerId(v int64) *TmallFuwuServiceitemListRequest {
	s.SellerId = &v
	return s
}
func (s *TmallFuwuServiceitemListRequest) SetItemids(v []int64) *TmallFuwuServiceitemListRequest {
	s.Itemids = &v
	return s
}

func (req *TmallFuwuServiceitemListRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.SellerId != nil {
		paramMap["seller_id"] = *req.SellerId
	}
	if req.Itemids != nil {
		paramMap["itemids"] = util.ConvertBasicList(*req.Itemids)
	}
	return paramMap
}

func (req *TmallFuwuServiceitemListRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
